#!/usr/bin/env python

import sys

from PyQt4.QtCore import (PYQT_VERSION_STR, QFile, QFileInfo, QSettings,
                          QString, QT_VERSION_STR, QTimer, QVariant, Qt,
                          SIGNAL)
from PyQt4.QtGui import (QAction, QActionGroup, QApplication, QDockWidget,
                         QFileDialog, QFrame, QIcon, QImage, QImageReader,
                         QImageWriter, QInputDialog, QKeySequence, QLabel,
                         QListWidget, QMainWindow, QMessageBox, QPainter,
                         QPixmap, QPrintDialog, QPrinter, QSpinBox)

from defs import guiView, guiModel
import pdb

reload(guiView)
reload(guiModel)

__version__ = "0.0.2"
appname = "koohii kanji manager"

## App
##########
app = QApplication(sys.argv)
app.setOrganizationName("Nonyaz, Inc.")
app.setOrganizationDomain("nonyaz.eu")
app.setApplicationName("koohii kanji manager")
app.setWindowIcon(QIcon(":/icon.png"))##Pants: Change Icon

#def main():
## Model
##########
#pdb.set_trace()
model = guiModel.KanjiModel()

## View
########
view = guiView.MainWindow(__version__,appname,model)
view.kanjiTree.setModel(model)
view.kanjiTree.update()


view.show()
app.exec_()

#main()
